package com.cike.command;

/**
 * @author kou
 * ConcreteCommand 实现
 */
public class LightOnCommand implements Command{
    private Light light;
    public LightOnCommand(Light light) {
        this.light = light;
    }
    @Override
    public void execute() {
        light.turnOn();
    }
}
